package MVCEX1BT4;
import java.util.Scanner;
public class Views {
public static void main(String[] args) {
	Scanner sc=new Scanner(System.in);
	Object obj=new Object();
	Controllers result=new Controllers();
	int i;
	System.out.print("Input thang: ");
	i=sc.nextInt();
	obj.setThang(i);
	
	while(i!=1&&i!=2&&i!=3&&i!=4&&i!=5&&i!=6&&i!=7&&i!=8&&i!=9&&i!=10&&i!=11&&i!=12){
		System.out.println("---------Reset-----------");
		System.out.print("Input thang: ");
		i=sc.nextInt();
		obj.setThang(i);
	}
		
	System.out.print("Input nam  : ");
	obj.setNam(sc.nextInt());
	result.DateControllers(obj);
	System.out.println("Thang "+obj.getThang()+" Nam "+obj.getNam()+" co "+obj.getNgay()+ " ngay ");
	}
}
